package com.yoso.shop.application.service;


import com.yoso.shop.domain.user.consumer.ConsumerEntity;
import com.yoso.shop.domain.user.consumer.ConsumerEntityExample;
import com.yoso.shop.infrastructure.base.service.IBaseService;
import com.yoso.shop.interfaces.vo.user.consumer.ConsumerVo;

/**
 * @author yuluo
 * @date 2021-06-25 14:53
 */
public interface IConsumerService extends IBaseService<ConsumerEntity, ConsumerEntityExample> {
    /**
     * 用户注册
     * @param v2E
     * @return
     */
    boolean register(ConsumerEntity v2E);

    /**
     * 用户登录
     * @param entity
     * @return
     */
    ConsumerVo login(ConsumerEntity entity);
/*    UserEntity login(String u_username);

    int getTotal(String u_username);

    List<UserEntity> list(String u_username, PagePojo<UserEntity> page);

    void add(UserEntity userEntity);

    void del(int u_id);

    UserEntity findById(int u_id);

    void update(UserEntity userEntity);

    void setVip(String u_id, String u_identity);

    void add(String u_username, String u_password);


    UserEntity find(String u_username, String u_password);

    void userUpdate(UserEntity userEntity);*/

}
